package com.masterclient.app.modules.aftersale.contract;

import com.eoner.baselibrary.base.BasePresenter;
import com.eoner.baselibrary.base.BaseView;
import com.eoner.baselibrary.bean.aftersale.CommentProductBean;
import com.eoner.baselibrary.bean.personal.UploadImgBean;

import java.io.File;
import java.util.List;
import java.util.Map;

/**
 * 作者：sean
 * 创建时间：2017/8/8 16:48
 * 功能说明：
 */

public interface CommentContract {

    interface View extends BaseView {
      void getCommentProducts(CommentProductBean.DataBean dataBean);
        void onUploadSuccess(UploadImgBean.DataBean dataBean,int mPosition);
        void success();
        void failed(String msg);
    }

    abstract static class Presenter extends BasePresenter<View> {

        @Override
        public void onStart() {

        }

        public abstract void getCommentProduct(String trade_no);

        public abstract void uploadImage(File image, String type,int mPosition);

        public abstract void addOrderReview(Map<String,String> content, Map<String,List<String>> image,String order_no,Map<String,String> rating_level);
        
    }
}